home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Code Resources / 3D Buttons CDEF 1.0b4 / Source / 3D Buttons CDEF source / (3D Buttons CDEF.π) / LGBControl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-04  |  783 b   |  25 lines  |  [TEXT/MMCC]

  1. /**************************************************************************
  2.     LGBControl
  3.     
  4.     Public domain, by Zig Zichterman.
  5.     
  6.     Just a few utilities that the control classes use.
  7.     
  8.     Some of the drawing code is taken from the public domain source
  9.     accompanying _develop_ 15.
  10. **************************************************************************/
  11. #pragma once
  12.  
  13. class LGBControl {
  14.  
  15.     // ———— Draw Utilities ———————————————————————————————————————————
  16.     public :
  17.         static short    CountLines(const StringPtr inString);
  18.         static short    TitleHeight(const StringPtr inTitle);
  19.         static void        SetupFont(void)
  20.                             {    ::TextFont(systemFont); ::TextSize(0); }
  21.         static void        CalcBoxes(const Rect &inControlRect,
  22.                             const StringPtr inTitle,
  23.                             Rect &outCheckbox, Rect &outTitleRect);
  24. };
  25.